package com.tron.sync.controller;

import com.tron.sync.service.PlatformToFedocService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "同步数据到FEDOC服务")
@RestController
public class PlatformToFedocController {
    @Resource
    private PlatformToFedocService platformToFedocService;

    @ApiOperation(value = "同步办文权限配置",notes = "同步用户数据到fedoc的办文权限管理服务，并设置默认查询权限")
    @GetMapping("/syncUserToFedocInQuery")
    public String syncUserToFedocInQuery(){
        return platformToFedocService.syncPlatformToFedoc().toString();
    }
}
